<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="text/javascript" th:src="@{/home/js/public.js}"></script>
</head>
	    <script type="text/javascript">
	    	$(function(){
				$('#log-ser').on('click', function(e) {
			        e.preventDefault();
			        var diag = new $.Zebra_Dialog({
			            source: {'iframe': {
			                'src':'log-ser.html',
			                'height':450
			            }},
			            width:600,
			            title:'高级搜索',
			            buttons: ['确定']
			        });
			    });
	    	})
	    </script>
	<body>
		<div class="navigation-t">
	   	  <div class="navigation-tl">当前位置：<a href="#" onclick="changeMain('home')">主页</a> > 系统日志</div>
	   	  <div class="navigation-tr">
	   	  	<ul>
	   	 <li onclick="changeMain('log')" ><span>操作日志</span></li>
	   	  		<li onclick="changeMain('slog')" class="active"><span>安全日志</span></li>
	   	  	</ul>
	   	  </div>
	    </div>
	    <div class="project">
	    	<div class="project-padding"> 
	       	  <div class="table-tool project-t">
	          	 <div class="table-tool">
		          	<div class="table-tool-ser">
		          	 	<div class="tool-ser"><input type="text" class="form-control" placeholder="输入查询条件"  	id="search1"/></div>
		          	 	<div class="tool-btn"  onclick="js_method()" ><span class="ser-icon"></span><a >搜索</a></div>
		          	</div>
	             </div>
	          </div>
	          <!--内容开始-->
	          <div class="table-head">
	          	<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
	          		<thead>
		          		<tr>
		          			<td width="6%">序号</td>
		          			<td width="14%">管理员</td>
		          			<td width="40%">行为</td>
		          			<td width="20%">日期</td>
		          			<td width="20%">结果</td>
		          		</tr>
	          		</thead>
	          		<tbody>
		          		<tr th:each="row,iterStat : ${rows}">
							<td th:text="${iterStat.count}">1</td>
							<td th:text="${row.userName}">admin</td>
							<td th:text="${row.operation}">PM查询</td>
							<td th:text="${row.createDate}">2017-06-07 17:00:00</td>
							<td th:text="${row.result}">success</td>
						</tr>
	          		</tbody>
	          	</table>
	          </div>
	          <!--内容结束-->
	          <!--分页开始-->
	   
			<div class="multimedia-c">
				<ul class="pagination" id="pagination">
				</ul>
				<input type="hidden" id="PageCount" runat="server" /> <input
					type="hidden" id="PageSize" runat="server" value="5" /> <input
					type="hidden" id="countindex" runat="server" value="10" />
				<!--设置最多显示的页码数 可以手动设置 默认为4-->
				<input type="hidden" id="visiblePages" runat="server" value="4" />
			</div>
	          <!--分页结束-->
	        </div>
	    </div>

	</body>
<script src="home/js/HomePage.js" type="text/javascript"></script>
<script th:inline="javascript">  
/*<![CDATA[*/  
    var total ="[[${total}]]";
    var pageNo ="[[${pageNo}]]"; 
    var  search=[[${search}]]
    if(search!=null){
    	  $("#search1").val(search);
    }
  
    $("#PageCount").val(total);
    loadpage(pageNo,"/operation/log/",$("#search1").val());
	function js_method(){
	 var search= $("#search1").val();
	 $("#frameReft").load("/operation/log/1?timestamp="+new Date().getTime(),{userName: '1'});
	}
	
/*]]>*/  
</script>

</html>